<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="${contextPath}/resource/css/default.css" />
		<script language="javascript">
		function submitFrom(fm){
			var tablename = document.getElementById("synchronizedData.tableName").value;
			var classname = document.getElementById("synchronizedData.className").value;
			if(tablename == null || tablename==""){
				alert("请输入表名!");
				return;
			}
			if(classname == null || classname==""){
				alert("请输入类名!");
				return;
			}
			fm.submit();
		}
		</script>
	</head>
	<body>
		<s:form action="synchronizedDataAction_update.do"  method="post">
			<table class="menu_table">
				<tr>
					<th>
						<a href="userAction_list.do">同步设置</a>&gt;&gt;设置修改
					</th>
				</tr>
			</table>
			<div class="listtable">
				<div class="secondDiv">
					<table class="form_table">
						<tr>
							<th width="20%">
								表名<s:hidden name="synchronizedData.id"></s:hidden>
							</th>
							<td width="15%">
								<s:textfield name="synchronizedData.tableName" id="synchronizedData.tableName" size="20"
									maxlength="50" />
								<span class="txtblue" id="resultadminUser">*</span>
							</td>
							<th width="20%">
								类名
							</th>
							<td width="35%">
								<s:textfield name="synchronizedData.className" id="synchronizedData.className" maxlength="50" size="30" />
								<span class="txtblue" id="resulpassword">*</span>
							</td>
						</tr>
						<tr>
							<th>
								所属模块
							</th>
							<td colspan="3">
								<s:select list="synchronizedTable" name="synchronizedData.typeModel" id="synchronizedData.typeModel"></s:select>
								<span class="txtblue" id="resulpassword">*</span>
							</td>
						</tr>
					</table>
					
		<table width="80%" border="0" align="center" cellpadding="3" cellspacing="1">
			<s:token></s:token>
		    <tr>
		      <td align="center"  >
		      <div align="center">
		      	<input type="button" value="" class="apply_style" align="middle" onclick="submitFrom(this.form);"/>
		        <input type="button" onclick="javascript:location='synchronizedDataAction_list.do'" class="back_style"  />
		        <input type="reset" id="重置 " class="reset_style" value=""/>
		        </div>
		        </td>
		    </tr>
		</table>
				</div>
			</div>
		</s:form>
	</body>
</html>
